GXCopyFormat
You can use theGXCopyFormat
function to create a copy of a format object.
gxFormat GXCopyFormat (gxFormat srcFormat, gxFormat dstFormat);
srcFormat
- A reference to the source format object to copy.
dstFormat
- A reference to the destination format object.
- function result
- A reference to a format object.
DESCRIPTION
TheGXCopyFormat
function copies the properties from the source format object into the destination object and returns a reference to the destination format object. If you specifynil
for thedstFormat
parameter, QuickDraw GX creates a format object to receive the properties.RESULT CODES
gxSegmentLoadFailedErr A required code segment could not be found, or there was not enough memory to load it. gxPaperTypeNotFound The paper-type object cannot be located. SEE ALSO
Listing 3-14 on page 3-56 shows how to use theGXCopyFormat
function to copy a format object's storage.
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help